package cn.flying.cloud.base.common.sensitive.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import cn.flying.cloud.base.common.sensitive.enums.SensitiveType;
import cn.flying.cloud.base.common.sensitive.serializer.SensitiveInfoSerializer;

/**
 * 脱敏注解
 *
 * @author: admin
 * @date: 2025年09月24日 11:29
 * @version: 1.0
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@JacksonAnnotationsInside
@JsonSerialize(using = SensitiveInfoSerializer.class)
public @interface SensitiveInfo {
    SensitiveType value();
}